package com.hdl.service.impl;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.hdl.mapper.ArticleMapper;
import com.hdl.pojo.Article;
import com.hdl.service.ArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 类名 ArticleServiceImpl
 * 描述 文章业务实现类
 *
 * @author hedonglin
 * @version 1.0
 * @date 2020/5/19 11:01
 */
@Service
public class ArticleServiceImpl implements ArticleService {
    @Autowired
    private ArticleMapper articleMapper;

    @Override
    public Article selectById(Integer id) {
        return articleMapper.selectById(id);
    }

    @Override
    public List<Article> selectAll() {
        return articleMapper.selectAll();
    }
}
